/*******************************************************************************
 * Size: 24 px
 * Bpp: 4
 * Opts: --bpp 4 --size 24 --font D:/project/ui/esp_ai/assets/iconfont.ttf -o D:/project/ui/esp_ai/assets\ui_font_IconWiFi24.c --format lvgl --symbols 有无 --no-compress --no-prefilter
 ******************************************************************************/

#include "../ui.h"

#ifndef UI_FONT_ICONWIFI24
#define UI_FONT_ICONWIFI24 1
#endif

#if UI_FONT_ICONWIFI24

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+65E0 "无" */
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x97, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x4f, 0x30, 0x35, 0x78, 0x87, 0x53,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd, 0xff,
    0xff, 0xff, 0xff, 0xff, 0xe9, 0x30, 0x0, 0x0,
    0x0, 0x3, 0xcf, 0xff, 0x52, 0x0, 0x0, 0x25,
    0x9e, 0xfc, 0x30, 0x0, 0x0, 0x8f, 0xe7, 0x4f,
    0x40, 0x0, 0x0, 0x0, 0x0, 0x7e, 0xf8, 0x0,
    0x1c, 0xf9, 0x10, 0x7, 0xe1, 0x0, 0x0, 0x0,
    0x0, 0x1, 0x9f, 0xc1, 0xbf, 0x60, 0x0, 0x0,
    0xff, 0xbc, 0xdb, 0x94, 0x0, 0x0, 0x6, 0xfb,
    0x43, 0x0, 0x0, 0x6e, 0xff, 0xfb, 0xbc, 0xff,
    0xe7, 0x0, 0x0, 0x34, 0x0, 0x0, 0x2d, 0xfb,
    0x46, 0xf2, 0x0, 0x4, 0xbf, 0xd2, 0x0, 0x0,
    0x0, 0x3, 0xee, 0x40, 0x0, 0xbc, 0x0, 0x0,
    0x4, 0xef, 0x30, 0x0, 0x0, 0x4, 0xb1, 0x0,
    0x0, 0x1f, 0x80, 0x0, 0x0, 0x1b, 0x50, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x29, 0xff, 0xff, 0xa3,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6,
    0xff, 0x97, 0xff, 0xff, 0x70, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x1f, 0xa1, 0x0, 0xd, 0xaa,
    0xf1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2,
    0x0, 0x0, 0x3, 0xf4, 0x10, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x90, 0x7e,
    0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x6f, 0xf7, 0xc, 0xa0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x3f, 0xf4, 0x2,
    0xf5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x2, 0x20, 0x0, 0x6f, 0x20, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0xa, 0x60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,

    /* U+6709 "有" */
    0x0, 0x0, 0x0, 0x48, 0xbd, 0xee, 0xdb, 0x84,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x7e, 0xff, 0xfe,
    0xcc, 0xef, 0xff, 0xe7, 0x0, 0x0, 0x0, 0x4e,
    0xfe, 0x94, 0x0, 0x0, 0x0, 0x49, 0xef, 0xe5,
    0x0, 0x8, 0xff, 0x70, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x7, 0xff, 0x90, 0x9f, 0xd2, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x2d, 0xf9, 0x89,
    0x0, 0x0, 0x6, 0xae, 0xff, 0xea, 0x60, 0x0,
    0x0, 0xa8, 0x0, 0x0, 0x7, 0xef, 0xfd, 0xbb,
    0xdf, 0xfe, 0x70, 0x0, 0x0, 0x0, 0x0, 0xbf,
    0xe6, 0x10, 0x0, 0x1, 0x6e, 0xfb, 0x0, 0x0,
    0x0, 0x8, 0xf9, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x9f, 0x80, 0x0, 0x0, 0x2, 0x50, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x5, 0x20, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x4a, 0xcc, 0xa4, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0xa, 0xff, 0xee, 0xff,
    0xb0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5f,
    0xa2, 0x0, 0x1a, 0xf7, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x41, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x56, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x2, 0xff, 0x30, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0xcd, 0x10, 0x0, 0x0, 0x0, 0x0
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 384, .box_w = 24, .box_h = 22, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 264, .adv_w = 384, .box_w = 22, .box_h = 18, .ofs_x = 1, .ofs_y = 0}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint16_t unicode_list_0[] = {
    0x0, 0x129
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 26080, .range_length = 298, .glyph_id_start = 1,
        .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 2, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
#endif

#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 1,
    .bpp = 4,
    .kern_classes = 0,
    .bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
    .cache = &cache
#endif
};



/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t ui_font_IconWiFi24 = {
#else
lv_font_t ui_font_IconWiFi24 = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 22,          /*The maximum line height required by the font*/
    .base_line = 2,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = 0,
    .underline_thickness = 0,
#endif
    .dsc = &font_dsc,          /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
    .fallback = NULL,
#endif
    .user_data = NULL,
};



#endif /*#if UI_FONT_ICONWIFI24*/

